﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using System.Data;

namespace logic
{
    public class files
    {
        public static int insert(FilesEntity fl)
        {
           return  Files.insert(fl);
        }

        public static void delete(int filesId)
        {
            Files.delete(filesId);
        }

        public static void update(FilesEntity files)
        {
            Files.update(files);
        }

        public static FilesEntity getById(int filesId)
        {
            return Files.getById(filesId);
        }

        public static DataTable getListByProduct(int productId)
        {
            return Files.getListByProduct(productId);
        }
    }
}
